'''
Created on 21 nov. 2014

@author: geoff
'''

class PanneauAffichage:

    def __init__(self, parking):
        self.parking = parking
        self.allume = True
        self.nomSpeaker = "[PanneauAffichage] - "
        
    def getAffichage(self):
        if self.allume == True :
            if self.parking.estPlein():
                print(self.nomSpeaker + "PARKING COMPLET")
            else :
                print(self.nomSpeaker + "NB places libres dans parking : " + str(self.parking.getNbPlacesLibres()))
        else :
            print(self.nomSpeaker + "OFF")
            
    def setAffichageOn(self):
        self.allume = True
        
    def setAffichageOff(self):
        self.allume = False    
        